home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / include / pwd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-11  |  1.8 KB  |  74 lines

  1. #ifndef __PWD_H__
  2. #define __PWD_H__
  3. /*
  4.  * $Header: pwd.h,v 1.1 90/01/16 12:14:48 dbo Exp $
  5.  
  6.  * This material is confidential and is furnished under a written
  7.  * license agreement.  It may not be used, copied or disclosed to
  8.  * others except in accordance with the terms of that agreement.
  9.  * 
  10.  * Copyright (C) 1987, 1991 Spectragraphics, Inc.
  11.  * All Rights Reserved.
  12.  * 
  13.  * Some portions Copyright 1987 by Digital Equipment Corporation, Maynard,
  14.  * Massachusetts, and the Massachusetts Institute of Technology, Cambridge,
  15.  * Massachusetts.
  16.  * 
  17.  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  19.  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23.  * SOFTWARE.
  24.  
  25.  * $Locker:  $
  26.  */
  27.  
  28. #include <packon.h>
  29.  
  30. /*    pwd.h    4.1    83/05/03    */
  31.  
  32. struct    passwd { /* see getpwent(3) */
  33.     char    *pw_name;
  34.     char    *pw_passwd;
  35.     unsigned short    pw_uid;
  36.     unsigned short    pw_gid;
  37.     unsigned short    pw_quota;
  38.     char    *pw_comment PACKED;
  39.     char    *pw_gecos PACKED;
  40.     char    *pw_dir;
  41.     char    *pw_shell;
  42. };
  43.  
  44. #include <packoff.h>
  45.  
  46. #ifndef NO_PROTO
  47.  
  48. char *getlogin(void);
  49. #ifndef __HIGHC__
  50. int getuid(void);
  51. #endif
  52. void setpwent(void);
  53. struct passwd *getpwent(void);
  54. struct passwd *getpwuid(int uid);
  55. struct passwd *getpwnam(char *name);
  56. char *getpwvar(char *key,char *var);
  57.  
  58. #else /* NO_PROTO */
  59.  
  60. char *getlogin();
  61. #ifndef __HIGHC__
  62. int getuid();
  63. #endif
  64. void setpwent();
  65. struct passwd *getpwent();
  66. struct passwd *getpwuid();
  67. struct passwd *getpwnam();
  68. char *getpwvar();
  69.  
  70. #endif    /* NO_PROTO */
  71.  
  72. #endif /* __PWD_H__ */
  73.  
  74.